﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using PresentationLayer.Reports;
using System.Web.UI.WebControls;

namespace PresentationLayer.View
{
    public partial class Report_InventoryStatus : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            int m1 = Int32.Parse(DropDownList1.SelectedValue);




            DS_InventoryStatus ds = new DS_InventoryStatus();
            PresentationLayer.Reports.DS_InventoryStatusTableAdapters.InventoryStatusTableAdapter ta = new PresentationLayer.Reports.DS_InventoryStatusTableAdapters.InventoryStatusTableAdapter();

            ta.Fill(ds.InventoryStatus, m);
            Report_Inventorystatus rep = new Report_InventoryStatus();


            rep.SetDataSource(ds);
            CrystalReportViewer1.ReportSource = rep;





        }
    }
}